﻿using System.ComponentModel;
using WeatherHistory.Shared.Validation;

namespace WeatherHistory.Api.CommandsQueries.Queries;

public class PageSettings
{
    [DefaultValue(0)]
    [GreaterThan(-1)]
    public int From { get; set; } = 0;

    [GreaterThan(0)]
    [DefaultValue(10)]
    public int Size { get; set; } = 10;
}